package o;

import androidx.annotation.NonNull;
import com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseDetailResponse.Layout;
import com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseDetailResponse.LayoutData;
import com.huawei.appmarket.service.distribution.authentication.bean.AgdSecurityVerificationResponse;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class dxl {
    private static List<String> ˏ = new ArrayList();

    static {
        ˏ.clear();
        ˏ.add("detailheadcard");
        ˏ.add("detailpermissioncard");
        ˏ.add("detailscreencard");
        ˏ.add("detaileditorrecommendcard");
        ˏ.add("detailprizecard");
        ˏ.add("detailappintrocard");
        ˏ.add("detailhiddencard");
        ˏ.add("detailgradecard");
        ˏ.add("textlistcard");
    }

    public static void ˋ(@NonNull AgdSecurityVerificationResponse agdSecurityVerificationResponse) {
        List ʻॱ = agdSecurityVerificationResponse.ʻॱ();
        if (!CollectCheck.isEmpty(ʻॱ)) {
            Iterator it = ʻॱ.iterator();
            while (it.hasNext()) {
                if (!ˏ.contains(((Layout) it.next()).ˎ())) {
                    it.remove();
                }
            }
            ʻॱ = agdSecurityVerificationResponse.ᐝॱ();
            if (!CollectCheck.isEmpty(ʻॱ)) {
                it = ʻॱ.iterator();
                while (it.hasNext()) {
                    if (!ˏ.contains(((LayoutData) it.next()).ˏ())) {
                        it.remove();
                    }
                }
            }
        }
    }
}
